home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Enigma Amiga CD
/
Programmi
/
Ital20.lha
/
ital20
/
arexx
/
Example.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-05-24
|
2KB
|
75 lines
/*
*
* Ital and Arexx
* written by Arturo Ortino 12/12/93
* rev. December 1994 for Ital 2.0
*
*/
options results
/*
* We have to check wether Ital has been already launched,
* looking for an arexx porta with name 'ITAL' ...
* If Ital is not present we run it by the command
* address command "Work:Inglese/Varie/Ital NOREQ"
* then we wait until Ital is ready to receive orders by
* address command "waitforport ITAL"
* NOTE (1): Let's assume Ital is located in
* 'Work:Inglese/Varie'
* NOTE (2): 'waitforport' command must be in a search
* directory assigned by the 'path' command.
*/
if ~show('P','ITAL') then
DO
address command "Work:Inglese/Varie/Ital"
address command "waitforport ITAL"
END
address 'ITAL' /* gets in contact with Ital */
'CLEAR' /* resets every possible previous settings */
'Work:Docs/miofile' /* Tells Ital to translate file
* "miofile"; the translation will be saved in
* its original directory (Work:Docs) with
* "miofile.TRA" for name
*/
address command "more Work:Docs/miofile.TRA"
/* Now reads the translated file by "More" */
address 'ITAL' /* gets in contact again with Ital */
'df1:GamesDocs/*' /* Tells Ital to translate every file
* contained in "GamesDocs" directory on
* disk in df1:
*/
'SAVEDIR=df0:' /* Tells Ital that from now on every
* translated file should be saved in DF0:
*/
'df1:GamesDocs2/*' /* Tells Ital to tradurre every file
* contained in "GamesDocs2" directory on
* disk in df1:
* NOTE: Translated files now will be
* stored in df0: (see above)
*/
'CLEAR' /* resets SAVEDIR ... */
'RAM:Provv/read.me' /* Tells Ital to translate "read.me".
* NOTE: The translated file will e saved
* in the same directory of the input file
* (in this case, in "RAM:Provv")
*/
'QUIT' /* Work finished, Ciao Ital! */
exit (0)